#include "actor.h"

Actor::Actor(QObject *parent, const QString &name) :
    AbstractGameObject(parent, name)
{
}

GameObjectType Actor::type() const
{
	return GOT_Actor;
}

void Actor::addVisualObject( QPointer<AbstractGameObject> visualObject )
{
	m_visualObjects << visualObject;
}

void Actor::removeVisualObject( QPointer<AbstractGameObject> visualObject )
{
	m_visualObjects.removeOne(visualObject);
}

const Actor::VisualObjects& Actor::visualObjects() const
{
	return m_visualObjects;
}
